package com.wanxi.education.model.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * order
 * @author 
 */
@Data
@ApiModel(value = "订单功能之生成新订单后返回信息展示在页面vo类")
public class OrderAddBackVo {
    /**
     * 主键
     */
    @ApiModelProperty(value = "订单主键",required = true)
    private Long id;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号",required = true)
    private String orderNumber;

    /**
     * 课程名称
     */
    @ApiModelProperty(value = "课程名称",required = true)
    private String courseName;

    /**
     * 证书名称
     */
    @ApiModelProperty(value = "证书名称",required = true)
    private String certificateName;

    /**
     * 机构名称
     */
    @ApiModelProperty(value = "机构名称",required = true)
    private String agencyName;

    /**
     * 订单价格
     */
    @ApiModelProperty(value = "订单金额",required = true)
    private BigDecimal price;

    /**
     * 学习时长
     */
    @ApiModelProperty(value = "学习时长",required = true)
    private Integer studyLength;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "订单创建时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}